package com.gem.service;

import com.gem.domain.*;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * @Author: 玲
 * @Description:
 * @create 2019-10-21 21:18
 * @Modified By:
 */
public interface CoreService {


    Integer savePlan(CorePlan corePlan, Integer campusId);

    Integer updateComplete(CoreEvent coreEvent);

    PageInfo<CoreEvent> findEventById(Integer campusId,int currentPage, int pageSize);

    Campus findCampus(Integer campusId);

    List<CoreEvent> findEvents(Integer campusId);

    List<CoreEvent> findEventsByName(String eventName,Integer campusId);

    Integer deleteById(Integer coreEventId);

    Integer deleteAll(int [] coreEventIds);

    CoreEvent findById(Integer coreEventId);

    PageInfo<String> findGroup(Integer campusId, int currentPage, int pageSize);

    PageInfo<CoreEvent> findByGid(String gid, int currentPage, int pageSize);

    List<CoreEvent> findAll();

    Integer deleteByGid(String gid);

    Integer deleteGAll(String[] gids);

    Integer countEvent(Integer uid);

    Integer countName(Integer uid, String eventName);

    Integer countEventWeek(Integer uid);

    Integer countNameWeek(Integer uid, String eventName);
}
